package ch.unisi.inf.pfii.teamred.pacman.model;

public final class BlinkyController extends GhostController {

	private static final int DEPTH = Integer.MAX_VALUE;

	public BlinkyController() {
		super();
	}

	public final Direction move() {
		Direction directionToPacman = directionToPacmanUsingNeighbors(DEPTH);

		if (directionToPacman != null) {
			return directionToPacman;
		} else if (!canGoStraight(getAiControlledCreatureDirection())) {
			return getRandomDirection();
		} else {
			return getAiControlledCreatureDirection();
		}
	}
}
